package com.zyj.myapplication.Service;

import com.zyj.myapplication.Javabean.Club;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;

/**
 * Created by Administrator on 2017/9/26.
 */

public interface ClubService {
    //俱乐部列表
    @GET("lists/mod/club")
    Call<List<Club>> getAllclub();

    //获取俱乐部详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getClubInfo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );

    //获取俱乐部的收藏状态
    @GET("isExits/mod/fans/fan_id/{fan_id}/userid/{userid}/fans_type/{fans_type}/SessionID/{SessionID}")
    Call<Integer> getClubState(
            @Path("fan_id") String fan_id,
            @Path("userid") int userid,
            @Path("fans_type") String fans_type,
            @Path("SessionID") String SessionID
    );

    //关注俱乐部
    @GET("focus/SessionID/{SessionID}/userid/{userid}/fan_id/{fan_id}/fans_type/{fans_type}")
    Call<Integer> changeClubState(
            @Path("SessionID") String SessionID,
            @Path("userid") int userid,
            @Path("fan_id") String fan_id,
            @Path("fans_type") String fans_type
    );

    //取消关注俱乐部
    @GET("delete/mod/{mod}/club_id/{club_id}/user_id/{user_id}/SessionID/{SessionID}")
    Call<Integer> Nocollect(
            @Path("mod") String mod,
            @Path("club_id") String club_id,
            @Path("user_id") int user_id,
            @Path("SessionID") String SessionID
    );

    //获取俱乐部课程详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getClubClass(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );

    //获取俱乐部视频详细信息
    @GET("get/mod/{mod}/SessionID/{SessionID}/related/{related}/id/{id}/map/{map}")
    Call<Club> getClubVideo(
            @Path("SessionID") String SessionID,
            @Path("related") String related,
            @Path("map") String map,
            @Path("mod") String mod,
            @Path("id") String id
    );

}
